package com.xxl.job.consume.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * ES存储实体
 */
@Document(indexName = EsInfoModel.INDEX_NAME, type = EsInfoModel.TYPE_NAME)
public class EsInfoModel {

    public static final String INDEX_NAME = "signal";

    public static final String TYPE_NAME = "signal_data";

    @Id
    private String id;//主键

    private Long time;//时间

    private String value;//实时值
    private String valunit;//实时值

    private String devCode;//设备编码

    private String signalCode;//信号编码

    private String spaceid;//空间域ID

    private String devTypeId;//设备类型

    private String systemId;//所属系统

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    public String getSignalCode() {
        return signalCode;
    }

    public void setSignalCode(String signalCode) {
        this.signalCode = signalCode;
    }

    public String getSpaceid() {
        return spaceid;
    }

    public void setSpaceid(String spaceid) {
        this.spaceid = spaceid;
    }

    public String getDevTypeId() {
        return devTypeId;
    }

    public void setDevTypeId(String devTypeId) {
        this.devTypeId = devTypeId;
    }

    public String getSystemId() {
        return systemId;
    }

    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    public String getValunit() {
        return valunit;
    }

    public void setValunit(String valunit) {
        this.valunit = valunit;
    }
}
